package cn.visu.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户Token
 * </p>
 *
 * @author chuxw
 * @since 2017-06-01
 */

public class Token implements Serializable {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 用户ID
     */

	private Long userId;
    /**
     * token
     */
	private String token;
    /**
     * 过期时间
     */

	private Date expireTime;
    /**
     * 更新时间
     */

	private Date updateTime;

	public Token(Long id, Long userId, String token, Date expireTime, Date updateTime) {
		this.id = id;
		this.userId = userId;
		this.token = token;
		this.expireTime = expireTime;
		this.updateTime = updateTime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
